﻿Imports System.Windows.Forms

Public Class TestViews
    Public SelectedView As String = ""
    Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
        SelectedView = Me.cboViewTest.Text
        Me.DialogResult = System.Windows.Forms.DialogResult.OK
        Me.Close()
    End Sub
    Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.Close()
    End Sub

    Private Sub TestViews_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Me.cboViewTest.Items.Clear()
        For Each Tobj As Content In GoogleWidgetEditor.frmMain.Widget.Content
            Me.cboViewTest.Items.Add(Tobj.Name)
        Next
    End Sub
End Class
